/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';
//获取场景列表
export function getScenesList(param) {
    return request({
        url: '/isfd/metadataBusinessSceneDefinition/list',
        method: 'get',
        params: param
    });
}
//获取要素库列表
export function getDatabaseList(param) {
    return request({
        url: '/isfd/metadataDatabase/list/query',
        method: 'get',
        params: param
    });
}
//获取表字段
export function getTableFileds(param) {
    return request({
        url: '/isfd/metadataManagement/tableInfo',
        method: 'get',
        params: param
    });
}
// 获取模板列表
export function getTemplateList(param) {
    return request({
        url: '/isfd/datasourceTemplate/list',
        method: 'post',
        data: param
    });
}
// 删除模板
export function deletemplate(ids) {
    return request({
        url: `/isfd/datasourceTemplate/${ids}`,
        method: 'delete',
    });
}
// 新增数据模板
export function addTemplate(data) {
    return request({
        url: `/isfd/datasourceTemplate/add`,
        method: 'post',
        data
    });
}
// 查询数据模板详情
export function queryTemplateById(id) {
    return request({
        url: `/isfd/datasourceTemplate/${id}`,
        method: 'get',
    });
}
// 修改数据模板
export function updateTemplate(data) {
    return request({
        url: `/isfd/datasourceTemplate/update`,
        method: 'post',
        data
    });
}
// 导出excel模板
export function exportTemplateById(id) {
    return request({
        url: `/isfd/datasourceTemplate/export`,
        method: 'post',
        data: { templateId: id },
        responseType: 'blob'
    });
}



